package edu.cmu.ece.ds.droidchat.message;

import java.io.Serializable;

/**
 * An object that represent the login request from a DroidChat user to the
 * DroidChat server
 *
 * a subclass of "DroidChatMessage"
 */
public class ClientLoginMessage extends DroidChatMessage implements
		Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = 6938084868203763449L;
	private String username;
	private String password;

	public ClientLoginMessage(String username, String password) {
		super(DroidChatMessage.CLIENT_LOGIN);
		this.username = username;
		this.password = password;
	}

	public String getUsername() {
		return username;
	}

	public String getPassword() {
		return password;
	}

	public String toString() {
		return "ClientLoginMessage: username=" + this.username + " password="
				+ this.password;
	}
}
